package fr.cephb.operonj.core.db.database;

import com.sleepycat.bind.tuple.IntegerBinding;
import com.sleepycat.bind.tuple.TupleBinding;
import com.sleepycat.je.DatabaseConfig;
import com.sleepycat.je.DatabaseException;
import com.sleepycat.je.Environment;
import com.sleepycat.je.Transaction;

public class SetOfIntegersDB extends AbstractSetDB<Integer>
	{
	private TupleBinding<Integer> keyBinding= new IntegerBinding();
	
	public SetOfIntegersDB(Environment env, Transaction txn,
			String databaseName, DatabaseConfig dbConfig)
			throws DatabaseException
		{
		super(env, txn, databaseName, setIntSorter(defaultDbCfg(env,dbConfig)));
		}

	@Override
	public TupleBinding<Integer> getKeyBinding()
		{
		return keyBinding;
		}

	}
